package com.hx.annotation.example;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * @author jxlgcmh
 * @date 2020-08-16 17:11
 * @description
 */
public class MainApplication {
    public static void main(String[] args) throws ParseException {
        DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        Student student = new Student("张三", format.parse("1996-05-12"), 99.9d);
        System.out.println(SimpleFormat.format(student));

    }
}
